﻿<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>文件上传</title>
    <link href="demo.css" rel="stylesheet" type="text/css" />
    <link href="../css/uploader.all.css" rel="stylesheet" type="text/css" />
</head>

<body>
    <div id="header" class="header">Header</div>
    <div class="main">
        <div class="content">
            <div class="contentin">
                <div style="margin-bottom:10px;">注：仅部分浏览器（如Webkit内核浏览器或新版火狐）支持文件夹上传。</div>
                <div>
                    <a id="upload-target" class="x-button">选择文件夹并上传</a>
                </div>
                <div id="upload-view"></div>
            </div>
        </div>
        <div id="sidebar" class="sidebar"></div>
    </div>

    <script type="text/javascript" src="demo.js"></script>

    <script type="text/javascript" src="../js/Q.js"></script>
    <script type="text/javascript" src="../js/Q.Uploader.js"></script>
    <script type="text/javascript" src="../js/Q.Uploader.UI.File.js"></script>

    <script type="text/javascript">
        new Q.Uploader({
            url: UPLOAD_URL,
            target: document.getElementById("upload-target"),
            view: document.getElementById("upload-view"),
            //html5: false,
            isDir: true
        });
    </script>
</body>
</html>